package timing.ukulele.storage.vo.map;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;
import timing.ukulele.storage.entity.UserEntity;
import timing.ukulele.storage.vo.UserVO;

@Mapper
public interface UserMapper {
    UserMapper INSTANCE = Mappers.getMapper(UserMapper.class);

    @Mappings(value = {
            @Mapping(target = "groupName", ignore = true)
    })
    UserVO entity2VO(UserEntity user);
}
